module SearchesHelper
	def search_item_path(item)
		return '#' if item.structure.blank?
		case item.structure.kind
			when :posts then post_path(item)
			when :services then service_path(item)
			when :coaches then coach_path(item)
			when :page then page_path(item.structure.slug)
		end
	end
end
